package com.zdsoft.finance.product.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zdsoft.finance.base.service.impl.BaseServiceImpl;
import com.zdsoft.finance.common.base.CustomRepository;
import com.zdsoft.finance.product.entity.ProductBusiness;
import com.zdsoft.finance.product.repository.ProductBusinessRepository;
import com.zdsoft.finance.product.service.ProductBusinessService;

/**
 * 产品业务信息操作实现
 * @author longwei
 * @date 2016/11/22
 * @version 1.0
 */
@Service("productBusinessService")
public class ProductBusinessServiceImpl extends BaseServiceImpl<ProductBusiness, CustomRepository<ProductBusiness,String>> implements ProductBusinessService{

	@Autowired
	private ProductBusinessRepository productBusinessRepository;
	
	@Override
	public ProductBusiness findByProductId(String productId) {
		return productBusinessRepository.findByProductId(productId);
	}

}
